home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / utils / xad / developer / include / c / clib / xadmaster_protos.h
C/C++ Source or Header  |  1999-01-01  |  2KB  |  60 lines

  1. #ifndef  CLIB_XADMASTER_PROTOS_H
  2. #define  CLIB_XADMASTER_PROTOS_H
  3.  
  4. /*
  5. **    $VER: clib/xadmaster_protos.h 1.2 (07.02.1999)
  6. **    xadmaster.library function prototypes
  7. **
  8. **    Copyright © 1998 by Dirk Stöcker
  9. **    All Rights Reserved.
  10. */
  11.  
  12. #ifndef EXEC_TYPES_H
  13. #include <exec/types.h>
  14. #endif
  15.  
  16. #ifndef UTILITY_TAGITEM_H
  17. #include <utility/tagitem.h>
  18. #endif
  19.  
  20. #ifndef LIBRARIES_XADMASTER_H
  21. #include <libraries/xadmaster.h>
  22. #endif
  23.  
  24. APTR xadAllocObjectA(LONG type, struct TagItem *tags);
  25. APTR xadAllocObject(LONG type, Tag tag1, ...);
  26.  
  27. void xadFreeObjectA(APTR object, struct TagItem *tags);
  28. void xadFreeObject(APTR object, Tag tag1, ...);
  29.  
  30. struct xadClient *xadRecogFileA(ULONG size, APTR memory,
  31.     struct TagItem *tags);
  32. struct xadClient *xadRecogFile(ULONG size, APTR memory, Tag tag1, ...);
  33.  
  34. LONG xadGetInfoA(struct xadArchiveInfo *ai, struct TagItem *tags);
  35. LONG xadGetInfo(struct xadArchiveInfo *ai, Tag tag1, ...);
  36.  
  37. void xadFreeInfo(struct xadArchiveInfo *ai);
  38.  
  39. LONG xadFileUnArcA(struct xadArchiveInfo *ai, struct TagItem *tags);
  40. LONG xadFileUnArc(struct xadArchiveInfo *ai, Tag tag1, ...);
  41.  
  42. LONG xadDiskUnArcA(struct xadArchiveInfo *ai, struct TagItem *tags);
  43. LONG xadDiskUnArc(struct xadArchiveInfo *ai, Tag tag1, ...);
  44.  
  45. STRPTR xadGetErrorText(ULONG errnum);
  46.  
  47. struct xadClient *xadGetClientInfo(void);
  48.  
  49. /* this function can be called from client functions only! */
  50. LONG xadHookAccess(ULONG command, LONG data, APTR buffer,
  51.     struct xadArchiveInfo *ai);
  52.  
  53. LONG xadConvertDatesA(struct TagItem *tags);
  54. LONG xadConvertDates(Tag tag1, ...);
  55.  
  56. UWORD xadCalcCRC16(UWORD id, UWORD init, ULONG size, STRPTR buffer);
  57. ULONG xadCalcCRC32(ULONG id, ULONG init, ULONG size, STRPTR buffer);
  58.  
  59. #endif    /* CLIB_XADMASTER_PROTOS_H */
  60.